<?php 
$arrays = array(1,2,3,4);
foreach($arrays as &$array){
	$array *= $array;
} 
$array = 0;
echo $arrays[3];